package rentcar.service;

import java.util.List;

import rentcar.domain.UserPrincipal;



public interface UserService {

/*
 	UserPrincipal findUserIDByName(String userName);

	UserPrincipal findUserIDByPassportNumber(String userName);	
	
	boolean saveUser(UserPrincipal user);
	
	boolean deleteUser(UserPrincipal user);

	boolean Login (UserPrincipal user);
	
	boolean Logout (UserPrincipal user);
	
    boolean GiveAdminRights (UserPrincipal user, Boolean iAmAdmin);		
*/

	UserPrincipal loadUserByCredentials(String login, String password);

	UserPrincipal getUserByID(Long userId);
	
	void logoutUser(Long userId);
	
	List<UserPrincipal> getUsers();
	
	void saveUser (UserPrincipal user);
	
	void updateUser(UserPrincipal user);

	void deleteUser (UserPrincipal user);	
}
